import request from "@/utils/request";

export function allPermission(params) {
    return request({
        url: '/permissionRest/list',
        method: 'get',
        params
    })
}

export function create(data){
    return request({
        url:'/permissionRest/create',
        method:'post',
        data
    })
}


export function update(data){
    return request({
        url:'/permissionRest/update',
        method:'put',
        data
    })
}


export function removeById(id){
    return request({
      url: `/permissionRest/remove?id=${id}`,
      method: 'delete',
    })
}

